package ooDay04;

public class StaticFinalDemo {
    public static void main(String[] args) {
        //建立类于方法区并生成静态变量然后取
        System.out.println(Loo.NUM);
        //在编译时直接替换了
        System.out.println(Loo.PI);
        //Loo.PI=12;
    }
}

class Loo{
    public static final int NUM = 15;
    public static final double PI = 3.14159;
    //public static final double XY ;

}
